package com.treasure.mall.biz.config.redis;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/13
 */
public class RedisConstant {
    public static final String KEY_LIVE_SESSION = "zb:live:session:id_";

    public static final String KEY_AUCTION_SESSION_DELAY_COUNT = "zb:auction:session:delayCount:id_";

    public static final String HASH_KEY_DEAL_NUM = "dealNum";

    public static final String HASH_KEY_DEAL_AMOUNT = "dealAmount";

    public static final String HASH_KEY_MAX_ONLINE = "maxOnlineNum";

    public static final String HASH_KEY_ONLINE_NUM = "onlineNum";
    public static final String HASH_KEY_ACTIVITY_NUM = "activityNum";

    public static final String HASH_KEY_USER_ONLINE = ":online";
    public static final String HASH_KEY_USER_OFFLINE = ":offline";

    public static final String LOCK_KEY_AUCTION_SESSION = "zb:auction:session:id_";

    public static final String LOCK_SERVICE_AUCTION = "auction";

    public static final String LOCK_KEY_RED_PACKET = "zb.marketing:redPacket:id_";

    public static final String LOCK_SERVICE_MARKETING = "marketing";

    /**
     * 机器人开启状态
     */
    public static final String HASH_KEY_RO_BOT_STATUS = "roBotStatus";

    /**
     * 关注红包
     */
    public static final String LOCK_KEY_SUBSCRIBE_RED_PACKET = "zb.marketing:subscribe:redPacket:id_";


    /**
     * 在线总时间，单位秒
     */
    public static final String HASH_KEY_TOTAL_ONLINE_TIME = "totalOnlineTime";
    /**
     * 上线时间
     */
    public static final String HASH_KEY_USER_ONLINE_TIME = ":online:time";
    /**
     * 更新直播间关注锁
     */
    public static final String LOCK_KEY_UPDATE_ONLINE_TIME = "zb.update.live:session:id_";


}
